#!/bin/bash
kill -9 `cat application.pid`
echo 关闭进程`cat application.pid`
sleep 1s
#nohup java -Xms256M -Xmx256M -Xdebug -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=30012 -jar $1 &
nohup java -Xms256M -Xmx256M -jar $1 &
echo $! > application.pid
sleep 3s
tailf nohup.out -n 500
